<template>
	<view class="page" :style="themeColor">
		<view class="flex benben-position-layout flex flex-wrap align-center cardAndSafe_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-center justify-between flex-sub cardAndSafe_fd0_0'>
				<view class='flex flex-wrap align-center'>
					<person></person>
				</view>
				<view class='flex flex-wrap align-stretch justify-center flex-sub'>
					<text class='cardAndSafe_fd0_0_c1_c0'>联系我们</text>
				</view>
				<view class='flex flex-wrap align-center cardAndSafe_fd0_0_c2'>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
		<view class="loading_css" v-if="isShow">
			<u-loading size="36" color="#6A0002"></u-loading>
			<view class="loading_text">加载中</view>
		</view>
		<!---账号与安全两列flex布局开始-->
		<view class="flex flex-direction flex-wrap align-stretch cardAndSafe_flex_1" v-else>
			<view style="padding: 8rpx 0;">
				<back></back>
			</view>
			<view class="contact_img">
				<image :src='STATIC_URL+"46.png"' mode="aspectFill"></image>
			</view>
			<view class="phone_info">
				<view class="phone_left" @tap.stop="getPhone">
					<image class="phone_img" :src='STATIC_URL+"105.png"' mode=""></image>
					<view class="phone_content">
						<view class="phone_content_1">电话服务</view>
						<view class="phone_content_2">{{aboutInfo.kefu_phone}}</view>
					</view>
				</view>
				<view class="phone_right">
					{{aboutInfo.kefu_time}}
				</view>
			</view>
		</view>


	</view>
</template>
<script>
	import back from "@/components/back/index.vue"
	import person from "@/components/person/index.vue"
	export default {
		components: {
			back,
			person
		},


		data() {
			return {
				aboutInfo: {},
				isShow: true,
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.getData();
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			getData() {
				this.$api.post(global.apiUrls.aboutus, {

				}).then(res => {
					this.isShow = false;
					if (res.data.code == 1) {
						this.aboutInfo = res.data.data;
					} else {
						this.$message.info(res.data.msg);
					}
				})
			},
			getPhone() {
				let _this = this;
				uni.makePhoneCall({
					phoneNumber: _this.aboutInfo.kefu_phone, //电话号码
					success: function(e) {
						console.log(e);
					},
					fail: function(e) {
						console.log(e);
					}
				})
			}
		}
	};
</script>
<style lang="scss" scoped>
	.contact_img {
		width: 500rpx;
		height: 330rpx;
		margin: 64rpx auto 40rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}

	.phone_info {
		width: 638rpx;
		height: 141rpx;
		background: #FAE5E6;
		border-radius: 16rpx;
		margin: 0 auto;
		padding: 32rpx 24rpx 0 32rpx;
		display: flex;
		justify-content: space-between;

		.phone_left {
			display: flex;

			.phone_img {
				width: 60rpx;
				height: 60rpx;
				margin-right: 32rpx;
			}

			.phone_content {
				.phone_content_1 {
					font-size: 28rpx;
					margin-bottom: 16rpx;
				}

				.phone_content_2 {
					font-size: 24rpx;
				}
			}
		}

		.phone_right {
			font-size: 28rpx;
		}
	}



	.home_img {
		width: 40rpx;
		height: 40rpx;
	}

	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto !important;
	}

	.cardAndSafe_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.cardAndSafe_fd0_0_c2 {
		width: 40rpx;
		height: 40rpx;
	}

	.cardAndSafe_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
	}

	.cardAndSafe_fd0_0_c0_c0 {
		font-size: 32rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
	}

	.cardAndSafe_fd0_0 {
		margin: 0rpx 32rpx 0rpx 32rpx;
	}

	.cardAndSafe_flex_1 {
		background: #fff;
		font-size: 32rpx;
		background-size: 100% auto !important;
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.cardAndSafe_fd1_3 {
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.cardAndSafe_fd1_0_c1 {
		font-size: 26rpx;
		color: rgba(191, 191, 191, 1);
		font-weight: 400;
	}

	.cardAndSafe_fd1_0_c0 {
		font-size: 32rpx;
		font-weight: 400;
		color: #333333;
	}

	.cardAndSafe_fd1_0 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.cardAndSafe_flex_2 {
		height: 88rpx;
		position: fixed;
		bottom: 64rpx;
		left: 30rpx;
	}

	.cardAndSafe_fd2_0 {
		background: #6A0002;
		border-radius: 44rpx;
		font-size: 32rpx;
		font-weight: 500;
		color: #fff;
		width: 690rpx;
		height: 88rpx;
		line-height: 88rpx;
	}
</style>